package com.tinyseed.emcp.api.dashboard.query;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * @version Revision 1.0.0
 * @版权：SINOSERVICES 版权所有 (c) 2013
 * @author:Leen
 * @email:Howard.Wu@sinoservices.com
 * @see:
 * @创建日期：
 * @功能说明：
 * @begin
 * @修改记录:
 * @修改后版本 修改人        修改内容
 * @ Howard        	创建
 * @end
 */
@Getter
@Setter
@NoArgsConstructor
public class TreeQuickQuery {

    List<TreeQuickQuery> child = new ArrayList();
    private Long id;
    private String data;
    /*pid*/
    private Long pid;
    private String SecondData;

    public TreeQuickQuery(Long id, String data, Long pid) {
        this.id = id;
        this.data = data;
        this.pid = pid;
    }

    public TreeQuickQuery(Long id, String data, Long pid, String secondData) {
        this.id = id;
        this.data = data;
        this.pid = pid;
        SecondData = secondData;
    }

    public void addChild(TreeQuickQuery node) {
        this.child.add(node);
    }
}
